package com.yejiali.backend.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @Author:yejiali
 * @Date:2025/7/26-07-26-10:13
 * @Decsription:com.yejiali.backend.entity.dto
 * @Version:1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommentVO {
    private Long commentId;
    //视频ID
    private Long videoId;
    //发布者ID
    private Long publisherId;
    //发布者昵称
    private String publisherName;
    //发布者头像
    private String avatar;
    //上级评论ID（自引用，可为NULL）
    private Long parentCommentId;
    //评论内容
    private String content;
    //点赞数
    private Long likeCount;
    //反对数
    private Long dislikeCount;
    //发布时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date publishTime;
    //子评论
    private List<CommentVO> childComments;
    //是否点赞
    private Boolean isLiked;
}
